package cn.qiyu5522.tk_ems.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @BelongsProject: tk_ems
 * @BelongsPackage: cn.qiyu5522.tk_ems.entity.dto
 * @Author: TangQi
 * @CreateTime: 2023-02-03  17:42
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@ApiModel("学生传输对象")
public class StudentVO {

    @ApiModelProperty("学生编号")
    private Long id;

    @ApiModelProperty("学生姓名")
    @NotBlank(message = "学生姓名不能为空")
    private String name;

    @ApiModelProperty("学生年龄")
    @NotNull(message = "学生年龄不能为空")
    @Range(min = 1,max = 120,message = "年龄参数不合法")
    private Integer age;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty("性别")
    @NotNull(message = "性别不能为空")
    private Integer gender;

    @ApiModelProperty(value = "所在班级")
    @NotNull(message = "所在班级不能为空")
    private Long classroomId;

    @ApiModelProperty("专业")
    @NotNull(message = "专业不能为空")
    private Long majorId;

    @ApiModelProperty("所属院系")
    @NotNull(message = "所属院系不能为空")
    private Long departmentId;

    @ApiModelProperty("联系电话")
    @NotBlank(message = "联系电话不能为空")
    private String phone;


}
